module dogre.viewport;

import dogre.colourvalue;
import dogre.internals.utils;

extern(C)
{
    void call_setDimensions(void* ptr, float left, float top, float width, float height);
    int call_getActualHeight(void* ptr);
    int call_getActualWidth(void* ptr);
    void call_setBackgroundColour(void* ptr, void* color);
}

class Viewport
{
    mixin(Wrapper);

	~this(){ }

    void setDimensions(float left, float top, float width, float height)
    {
        call_setDimensions(p, left, top, width, height);
    }

    int getActualHeight()
    {
        return call_getActualHeight(p);
    }

    int getActualWidth()
    {
        return call_getActualWidth(p);
    }
    void setBackgroundColour(ColourValue color)
    {
        call_setBackgroundColour(p, color.p);
    }
}
